package com.itcoon.cloud.framework.transform.definition;


import com.itcoon.cloud.framework.transform.mode.InjectMode;

public class InjectDefinition {

    private InjectMode injectMode;
    private Object source;
    private String attribute;

    public InjectDefinition(String attribute, InjectMode injectMode, Object source) {
        this.attribute = attribute;
        this.injectMode = injectMode;
        this.source = source;
    }

    public InjectDefinition() {
    }

    public InjectMode getInjectMode() {
        return injectMode;
    }

    public void setInjectMode(InjectMode injectMode) {
        this.injectMode = injectMode;
    }

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public String getAttribute() {
        return attribute;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }

    @Override
    public String toString() {
        return "InjectContext{" +
                "injectMode=" + injectMode +
                ", source=" + source +
                ", attribute='" + attribute + '\'' +
                '}';
    }
}
